package com.int_tech.power.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by liubch on 2017/9/27.
 */
@Controller
@RequestMapping("power")
public class PowerController {

    @RequestMapping(value = "/power",method = RequestMethod.GET)
    public String mainPage(Model model, Long clientId, HttpServletRequest request) {

        String username = (String)request.getSession().getAttribute("username");

        model.addAttribute("uname",username);

        return "/power/power";
    }
}
